﻿<sdk:ChildWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:System_Windows_Controls_Primitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls" mc:Ignorable="d" x:Class="SGTLightAccent.Views.IngresoRemitosWindow"
           Width="819" Height="528" 
           Title="Ingreso de remitos"
            Language="es-ES"
           DataContext="{Binding Depositos, Source={StaticResource Locator}}"           >
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.Resources>
            <Style x:Key="customButtonStyle" TargetType="Button">
                <Setter Property="Padding" Value="0"/>
                <Setter Property="BorderThickness" Value="0"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="Button">
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" />
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="46" />
        </Grid.RowDefinitions>

        <Button x:Name="CancelButton" Content="Listo" Click="CancelButton_Click" Margin="623,0,99,10" Grid.Row="1" />
        <Button Content="Guardar" Grid.Row="1" Height="35" HorizontalAlignment="Right" Margin="0,0,7,0" x:Name="btnGuardar" VerticalAlignment="Top" Width="75" Command="{Binding BotonGuardarRemitoCarga}" RenderTransformOrigin="0.5,2.557" />
        <sdk:Label Content="Deposito" FontWeight="Bold" Height="28" HorizontalContentAlignment="Right" Margin="18,168,704,0" x:Name="label4" VerticalAlignment="Top" RenderTransformOrigin="0.927,0.607" d:LayoutOverrides="VerticalAlignment" />
        <TextBox Height="28" HorizontalAlignment="Right" IsReadOnly="False" Margin="0,91,541,0" x:Name="textBoxd1" Text="{Binding NuevoRemito.Numero_Remito, Mode=TwoWay}" VerticalAlignment="Top" Width="150" TabIndex="1" />
        <ComboBox DisplayMemberPath="Nombre" Height="28" HorizontalAlignment="Left" ItemsSource="{Binding Depositos}" Margin="106,168,0,0" x:Name="comboBox1" SelectedItem="{Binding NuevoRemito.Deposito, Mode=TwoWay}" VerticalAlignment="Top" Width="150" d:LayoutOverrides="VerticalAlignment" TabIndex="8" />
        <sdk:Label Content="Remito ext" FontWeight="Bold" Height="28" HorizontalAlignment="Right" HorizontalContentAlignment="Right" Margin="0,91,704,0" x:Name="label9" VerticalAlignment="Top" Width="75" />
        <Button Height="32" HorizontalAlignment="Right" Margin="0,8,8,0" x:Name="btnImprimir" Style="{StaticResource customButtonStyle}" VerticalAlignment="Top" Width="32" Command="{Binding BotonImprimirRemito}">
            <Image Height="32" Source="/SGTLightAccent;component/Images/printer-blue-icon.png" Stretch="None" Width="32" />
        </Button>
        <sdk:Label Content="N° Remito" FontWeight="Bold" Height="28" HorizontalAlignment="Right" HorizontalContentAlignment="Right" Margin="0,57,704,0" x:Name="label10" VerticalAlignment="Top" Width="75" />
        <TextBox Height="28" HorizontalAlignment="Right" IsReadOnly="False" Margin="0,57,541,0" x:Name="textBox12" Text="{Binding NuevoRemito.Numero_Remito_Carga, Mode=TwoWay}" VerticalAlignment="Top" Width="150" />
        <sdk:Label Content="Empresa" FontWeight="Bold" HorizontalContentAlignment="Right" Margin="0,125,704,0" x:Name="label7_Copy" HorizontalAlignment="Right" Width="75" Height="28" VerticalAlignment="Top" />
        <sdk:TabControl Margin="272,54,12,18">
            <sdk:TabItem Header="Camión">
            	<Grid Background="#FFE5E5E5">
            		<sdk:Label Content="Matricula" FontWeight="Bold" Height="28" HorizontalAlignment="Right" HorizontalContentAlignment="Right" Margin="0,10,413,0" x:Name="label1" VerticalAlignment="Top" Width="75" />
            		<sdk:Label Content="M. Zorra" FontWeight="Bold" Height="28" HorizontalAlignment="Right" HorizontalContentAlignment="Right" Margin="0,0,413,249" x:Name="label1_Copy1" VerticalAlignment="Bottom" Width="75" />
            		<TextBox Height="28" HorizontalAlignment="Right" IsReadOnly="False" Margin="0,10,242,0" x:Name="Matricula" TabIndex="2" Text="{Binding NuevoRemito.Matricula_Camion, Mode=TwoWay}" VerticalAlignment="Top" Width="150" />
            		<TextBox Height="28" HorizontalAlignment="Right" IsReadOnly="False" Margin="0,0,242,249" x:Name="MZorra" TabIndex="3" Text="{Binding NuevoRemito.Matricula_2, Mode=TwoWay}" VerticalAlignment="Bottom" Width="150" />
            		<sdk:Label Content="Bruto 1" FontWeight="Bold" Height="28" HorizontalAlignment="Right" HorizontalContentAlignment="Right" Margin="0,0,413,165" x:Name="label5" VerticalAlignment="Bottom" Width="75" />
            		<sdk:Label Content="Tara 1" FontWeight="Bold" Height="28" HorizontalAlignment="Right" HorizontalContentAlignment="Right" Margin="0,0,414,122" x:Name="label6" VerticalAlignment="Bottom" Width="75" />
            		<sdk:Label Content="ANP" FontWeight="Bold" Height="28" HorizontalAlignment="Right" HorizontalContentAlignment="Right" Margin="0,97,413,0" x:Name="label8" VerticalAlignment="Top" Width="75" d:LayoutOverrides="VerticalAlignment" />
            		<TextBox Height="28" HorizontalAlignment="Left" IsReadOnly="False" Margin="107,0,0,167" x:Name="Bruto1" TabIndex="4" Text="{Binding Mode=TwoWay, Path=NuevoRemito.Bruto1}" VerticalAlignment="Bottom" Width="150" />
            		<TextBox Height="28" HorizontalAlignment="Left" IsReadOnly="False" Margin="107,0,0,124" x:Name="Tara1" TabIndex="5" Text="{Binding Mode=TwoWay, Path=NuevoRemito.Tara_1}" VerticalAlignment="Bottom" Width="150" />
            		<TextBox Height="28" HorizontalAlignment="Left" IsReadOnly="False" Margin="107,95,0,0" x:Name="Panp" TabIndex="6" Text="{Binding NuevoRemito.Peso_ANP, Mode=TwoWay}" VerticalAlignment="Top" Width="150" d:LayoutOverrides="VerticalAlignment" />
            		<sdk:Label Content="Neto" FontWeight="Bold" Height="28" HorizontalAlignment="Right" HorizontalContentAlignment="Right" Margin="0,0,405,83" x:Name="label7" VerticalAlignment="Bottom" Width="75" />
            		<TextBox Height="28" HorizontalAlignment="Left" IsReadOnly="True" Margin="107,0,0,83" x:Name="PNeto" Text="{Binding NuevoRemito.PesoNeto, Mode=TwoWay}" VerticalAlignment="Bottom" Width="150" />
            		<sdk:Label Content="Bruto 2" FontWeight="Bold" HorizontalAlignment="Right" HorizontalContentAlignment="Right" Margin="0,138,177,165" x:Name="label12" Width="59" />
            		<TextBox Height="28" HorizontalAlignment="Left" IsReadOnly="False" Margin="341,0,0,165" x:Name="Bruto2" TabIndex="4" Text="{Binding Mode=TwoWay, Path=NuevoRemito.Bruto2}" VerticalAlignment="Bottom" Width="150" />
            		<sdk:Label Content="Tara 2" FontWeight="Bold" Height="28" HorizontalAlignment="Right" HorizontalContentAlignment="Right" Margin="0,0,177,124" x:Name="label13" VerticalAlignment="Bottom" Width="58" />
            		<TextBox Height="28" HorizontalAlignment="Left" IsReadOnly="False" Margin="341,0,0,124" x:Name="Tara2" TabIndex="5" Text="{Binding Mode=TwoWay, Path=NuevoRemito.Tara_2}" VerticalAlignment="Bottom" Width="150" />
            	</Grid>
            </sdk:TabItem>
            <sdk:TabItem Header="Puerto">
                <Grid Background="#FFE5E5E5">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="0.731*"/>
                        <ColumnDefinition Width="0.269*"/>
                    </Grid.ColumnDefinitions>
                    <sdk:Label Content="Barco" FontWeight="Bold" HorizontalContentAlignment="Right" Margin="8,17,300,211" Name="label1_Copy" />
                    <TextBox HorizontalAlignment="Right" IsReadOnly="True" Margin="0,17,136,0" Name="textBox1_Copy" TabIndex="11" Text="{Binding CargaSeleccionada.Barco.Nombre, Mode=TwoWay}" Width="150" Height="28" VerticalAlignment="Top" />
                    <sdk:Label Content="Bodega" FontWeight="Bold" HorizontalContentAlignment="Right" Margin="8,58,300,0" Name="label4_Copy" RenderTransformOrigin="0.927,0.607" Height="28" VerticalAlignment="Top" />
                    <ComboBox DisplayMemberPath="Numero" ItemsSource="{Binding CargaSeleccionada.Bodega, Mode=OneWay}" Margin="79,58,136,0" Name="comboBox1_Copy" SelectedItem="{Binding NuevoRemito.Bodega, Mode=TwoWay}" TabIndex="12" Height="28" VerticalAlignment="Top" />
                </Grid>
            </sdk:TabItem>
        </sdk:TabControl>
        <sdk:Label Content="Salida" FontWeight="Bold" Height="28" HorizontalContentAlignment="Right" Margin="43,208,704,0" Name="label2" VerticalAlignment="Top" />
        <sdk:Label Content="Llegada" FontWeight="Bold" Height="28" HorizontalContentAlignment="Right" Margin="0,252,704,0" Name="label3" VerticalAlignment="Top" HorizontalAlignment="Right" Width="50" />
        <sdk:Label Content="Notas" FontWeight="Bold" Height="28" HorizontalAlignment="Left" HorizontalContentAlignment="Right" Margin="43,289,0,0" Name="label11" RenderTransformOrigin="-0.04,0.429" VerticalAlignment="Top" Width="50" />
        <TextBox AcceptsReturn="True" FontSize="11" Height="110" HorizontalAlignment="Right" IsReadOnly="False" Margin="0,315,541,0" Name="Notas" TabIndex="13" Text="{Binding NuevoRemito.Observaciones, Mode=TwoWay}" VerticalAlignment="Top" Width="213" />
        <System_Windows_Controls_Primitives:DatePickerTextBox x:Name="HSalida" Height="28" HorizontalAlignment="Right" Margin="0,208,541,0" TabIndex="9" Text="{Binding NuevoRemito.Hora_Salida, Mode=TwoWay}" TextWrapping="Wrap" VerticalAlignment="Top" Watermark="&lt;dd/mm/aaaa hh:mm:ss&gt;" Width="150" />
        <System_Windows_Controls_Primitives:DatePickerTextBox x:Name="HLlegada"  Height="28" HorizontalAlignment="Right" Margin="0,252,541,0" Text="{Binding NuevoRemito.Hora_Llegada, Mode=TwoWay}" TextWrapping="Wrap" VerticalAlignment="Top" Watermark="&lt;dd/mm/aaaa hh:mm:ss&gt;" Width="150" />
        <sdk:Label Height="28" HorizontalAlignment="Left" Margin="106,125,0,0" Name="label14" VerticalAlignment="Top" Width="150" Content="{Binding Path=NuevoRemito.Carga.Proveedor.Nombre}" />
    </Grid>
</sdk:ChildWindow>